# -*- coding: utf-8 -*-
"""
name:利率_重庆_新续贷
code：HQD_interest_新续贷

"""


import  json
import math
import sys
import re
import datetime


# 获取本次评级数据
historyRatingInfo = json.loads(ratingRequest.get("historyRatingInfo"))

ratingLevel = decisionModelResult.get("ratingLevel").lower()

# 获取上次评级数据信息

lastRatingInfo = historyRatingInfo.get("lastRatingInfo")
lastRating = lastRatingInfo.get("ratingLevel")

#加年均应纳增值税和年均应纳所得税总额2万元

customer_dict = {"A":{'a':u"一层",'b':u"一层",'c':u"二层",'d':u"五层",'e':u'缺失值',u'缺失值':u"缺失值"},\
                    "B":{'a':u"一层",'b':u"二层",'c':u"三层",'d':u"五层",'e':u'缺失值',u'缺失值':u"缺失值"},\
                    "C":{'a':u"二层",'b':u"三层",'c':u"三层",'d':u"五层",'e':u'缺失值',u'缺失值':u"缺失值"},\
                    "D":{'a':u"三层",'b':u"四层",'c':u"四层",'d':u"五层",'e':u'缺失值',u'缺失值':u"缺失值"},\
                    "E":{'a':u"四层",'b':u"四层",'c':u"五层",'d':u"五层",'e':u'缺失值',u'缺失值':u"缺失值"},\
                    "F":{"a":u"缺失值","b":u"缺失值","c":u"缺失值","d":u"缺失值",'e':u'缺失值',u'缺失值':u"缺失值"},\
                    u"缺失值":{"a":u"缺失值","b":u"缺失值","c":u"缺失值","d":u"缺失值",'e':u'缺失值',u'缺失值':u"缺失值"}}
classification=customer_dict[lastRating][ratingLevel]


interest_dict1 = {u"一层":0.082,\
                 u"二层":0.088,\
                 u"三层":0.094,\
                 u"四层":0.100,\
                 u"五层":0.106,\
                 u"缺失值":0}


result =interest_dict1[classification]